package net.tv90.bfmccore.event;

import lombok.Getter;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;

public class PlayerCountryChangeEvent extends Event {
    private static final HandlerList Handlers = new HandlerList();
    private final @Getter Player player;
    private final @Getter String oldFaction;
    private final @Getter String newFaction;
    public PlayerCountryChangeEvent(Player player, String oldFaction, String newFaction) {
        this.player = player;
        this.oldFaction = oldFaction;
        this.newFaction = newFaction;
    }
    public static HandlerList getHandlerList() {
        return Handlers;
    }
    @Override
    public HandlerList getHandlers() {
        return Handlers;
    }

}
